﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using BusinessObjects;

namespace BusinessNews
{
    public class NewsLog : BusinessObject
    {
        public NewsLog()
        {
            Version = _versionDefault;
        }
        public NewsLog(long id, string tite, string content, string iP, string location, string device, string createdBy, DateTime? createdDate, string type)
            : this()
        {

            Id = id;
            Tite = tite;
            Content = content;
            IP = iP;
            Location = location;
            Device = device;
            CreatedBy = createdBy;
            CreatedDate = createdDate;
            Type = type;
        }
        ///  <summary>
        /// Version number. Used in optimistic concurrency decisions.
        ///  </summary>
        public string Version { get; set; }

        public long Id { get; set; }

        public string Tite { get; set; }

        public string Content { get; set; }

        public string IP { get; set; }

        public string Location { get; set; }

        public string Device { get; set; }

        public string CreatedBy { get; set; }

        public DateTime? CreatedDate { get; set; }

        public string Type { get; set; }

    }
}
